﻿/**
* @Depends base.bizproc.js
*/
ksg.ui.bizprocs.mediaLibraryManagement = function (id, dataParams) {
    return new ksg.ui.BizProc(id, dataParams, {
        artOptions: dataParams["media-options"],
        bizRules: {
        	getBizObjListBizRule: "getMediaLibraryDirectories"
        },

        CurrentEditPrivilege: function () {
            return ksg.security.Privileges.Delete;
        },
        _getBizObjDetailRuleParameters: function (id) {
            return {
                id: id, stripLeading: !this.CanEdit()
            };
        },
        _getBizObjListRuleParameters: function () {
            var options = $.extend({
                stripLeading: !this.CanEdit()
            }, this.artOptions);
            var pid = this._getParentBizProcValue("pid");
            if (pid)
                options.id = pid;

            return options;

        },
		_keyName: "keyName"

    });
};


